package com.monlyu.action.notice;

import com.monlyu.action.PageAction;
import com.monlyu.bean.Pages;
import com.monlyu.bo.NoticeBo;
import com.monlyu.vo.Notice;

/*        
 * @creator   曾俊 
 * @create-time 2010-2-7 下午12:57:43    
 */
public class ListNoticeAction extends PageAction {

	private Pages<Notice> notices;

	private NoticeBo noticeBo;

	public Pages<Notice> getNotices() {
		return notices;
	}

	public void setNoticeBo(NoticeBo noticeBo) {
		this.noticeBo = noticeBo;
	}

	public String execute() {
		notices = noticeBo.search(getDefPage());
		return view("noticeList.jsp");
	}

}
